package com.crm.entity;


import java.util.HashSet;
import java.util.Set;

/**
 * Permission entity. @author MyEclipse Persistence Tools
 */

public class Permission implements java.io.Serializable {

	// Fields

	private Integer perId;
	private Role role;
	private String perName;
	private Integer catagoryId;
	private Set userPers = new HashSet(0);

	// Constructors

	/** default constructor */
	public Permission() {
	}

	/** full constructor */
	public Permission(Role role, String perName, Integer catagoryId,
			Set userPers) {
		this.role = role;
		this.perName = perName;
		this.catagoryId = catagoryId;
		this.userPers = userPers;
	}

	// Property accessors

	public Integer getPerId() {
		return this.perId;
	}

	public void setPerId(Integer perId) {
		this.perId = perId;
	}

	public Role getRole() {
		return this.role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public String getPerName() {
		return this.perName;
	}

	public void setPerName(String perName) {
		this.perName = perName;
	}

	public Integer getCatagoryId() {
		return this.catagoryId;
	}

	public void setCatagoryId(Integer catagoryId) {
		this.catagoryId = catagoryId;
	}

	public Set getUserPers() {
		return this.userPers;
	}

	public void setUserPers(Set userPers) {
		this.userPers = userPers;
	}

}